//
//  HomeModel.m
//  futureLive
//
//  Created by zhoubiwen on 15/11/16.
//  Copyright © 2015年 ZHOU_LI_SUN. All rights reserved.
//

#import "HomeModel.h"

@implementation HomeModel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {


}

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    
    if ([key isEqualToString:@"list"]) {
        self.list = [NSMutableArray new];
        for (NSDictionary *dict in value) {
            HomeImageModel *model = [[HomeImageModel alloc]init];
            [model setValuesForKeysWithDictionary:dict];

//            NSDictionary *dictObject = [NSDictionary dictionaryWithDictionary:dict];
            [self.list addObject:model];
        }
        HomeImageModel *model = self.list.firstObject;
        self.type = model.type;
    }
}


@end
